<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>修改登录密码</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
	<meta name="apple-mobile-web-app-capable" content="yes" />
	<meta name="format-detection" content="telephone=no" />
	<link rel="stylesheet" href="../../css/public-heder-Reset.css">
	<link rel="stylesheet" href="../../css/input-button.css">
</head>
<body>
	<!-- page_box -->
	<div class="page-box">
		<!-- header -->
		<header class="page-header">
			<a href="javascript:history.go(-1)" class="back"></a>
			<p class="pege-name">修改登录密码</p>
			<!-- <a href="" class="Refresh">忘记</a> -->
		</header>
		<div class="liubai"></div>
		<!-- header /-->
		<!-- User-information -->
		<div class="User-information">
			<div class="User-form">
				<!-- <div class="password">
					<label>
						<input type="password" class="" style="font-size:1.7rem" placeholder="请输入原密码">
						<span class=""></span>
					</label>
				</div>  -->
				<div class="password">
					<label>
						<input type="password" class="passwordO" style="font-size:17px" placeholder="请输入新密码">
						<span class=""></span>
					</label>
				</div> 
				<div class="password">
					<label>
						<input type="password" class="passwordT eliminate" style="font-size:17px" placeholder="请确认新密码">
						<span class=""></span>
					</label>
				</div> 
			</div>	
			<div class="submit-btn">
				<button style="border:none" disabled="disabled">确定</button>
			</div>
		</div>
		<!-- User-information / -->
	</div>
<script type="text/javascript" src="../../js/jquery.min.js"></script>
<script type="text/javascript" src="../../js/http-url.js"></script>
<script type="text/javascript" src="../../js/md5.js"></script>
<script type="text/javascript">
	$(function(){
		$("input").on("keyup", function (event){
			var passwordO=$('.passwordO').val().trim();
			var passwordT=$('.passwordT').val().trim();
			if(passwordO.length>=6 && passwordO===passwordT){
				sureSubmit()
			}else {
				cannotSubmit()
			}
		});
		$('.submit-btn').find('button').click(function(){
			submitOk()
			var passwordT=hex_md5($('.passwordT').val().trim());
			var UserData={'passwordT':passwordT}
			ajaxRequest('/api/phone/rp/',UserData,function(data){
			},false)
		})
		
	});
</script>
</body>
</html>